<?php 
session_start();
$_SESSION['contact'];
$array = unserialize($_SESSION['contact']);
include_once('function.php');
$db=new db(); 
$sql = $array;
$file ="contact";
$map=array("姓名",'性別','信箱','電話','地址','區域','類型','租金','需求','提交時間');//表头 
$db->toExcel($sql,$map,$file); 
?>